package com.ark.service.service;

import com.ark.common.domain.entity.game.GameDevice;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface GameDeviceService extends IService<GameDevice> {

    /**
     * 判断设备是否存在
     * @param deviceId 设备ID
     */
    boolean isDeviceExist(String deviceId);

    /**
     * 根据设备ID获取设备信息
     * @param deviceId 设备ID
     */
    GameDevice getDeviceByDeviceId(String deviceId);

    /**
     * 更新设备信息
     * @param gameDevice 更新信息
     */
    boolean updateDevice(GameDevice gameDevice);

    /**
     * 插入设备信息
     * @param gameDevice 设备信息
     */
    boolean insertDevice(GameDevice gameDevice);

    /**
     * 获取设备列表
     */
    List<GameDevice> getDeviceList(GameDevice gameDevice);

    /**
     * 批量删除设备
     * @param deviceIds 设备ID
     */
    boolean deleteDeviceByIds(Long[] deviceIds);
}
